package redMoney;

public class PiblicUser {
    private String name;
    private Integer money;

    public PiblicUser() {
    }

    public PiblicUser(String name, Integer money) {
        this.name = name;
        this.money = money;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return money
     */
    public Integer getMoney() {
        return money;
    }

    /**
     * 设置
     * @param money
     */
    public void setMoney(Integer money) {
        this.money = money;
    }

    public String toString() {
        return "{name = " + name + ", money = " + money + "}";
    }
    public void show(){
        System.out.println("我叫"+name+"我有："+money);
    }
}
